 package com.stu.activiti.domain.service;

 import org.activiti.engine.identity.Group;
 import org.activiti.engine.identity.User;

 /**
 * @ProjectName: ativiti-demo 
 * @Package: com.stu.activiti.domain.service
 * @ClassName: ProcessGroupService
 * @Author: ZhangSheng
 * @Description: ${description}  
 * @Date: 2020/1/10 11:29
 * @Version: 1.0
 */
public interface ActivitiUserGroupService {

     /**
      * 添加User
      * @param user
      * @return
      */
    User addUser(User user);

     /**
      * 删除user
      * @param userid
      */
    void delUser(String userid);

     /**
      * 添加Group
      * @param group
      * @return
      */
    Group addGroup(Group group);

     /**
      * 删除Group
      * @param groupId
      */
    void delGroup(String groupId);

     /**
      * 绑定user到Group上
      * @param userid
      * @param groupId
      */
    void bindUserToGroup(String userid, String groupId);

     /**
      * 新建Group
      * @param user
      * @param group
      */
    void newGroupAndUser(User user, Group group);

}
